/**
 * This file is part of mycollab-services.
 *
 * mycollab-services is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * mycollab-services is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with mycollab-services.  If not, see <http://www.gnu.org/licenses/>.
 */
/*Domain class of table m_crm_lead*/
package com.mycollab.module.crm.domain;

import com.mycollab.core.arguments.ValuedBean;
import com.mycollab.db.metadata.Column;
import com.mycollab.db.metadata.Table;
import java.util.Date;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.hibernate.validator.constraints.Length;

@SuppressWarnings("ucd")
@Table("m_crm_lead")
public class Lead extends ValuedBean {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.id
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Column("id")
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.campaignId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Column("campaignId")
    private Integer campaignid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.leadSourceDesc
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=255, message="Field value is too long")
    @Column("leadSourceDesc")
    private String leadsourcedesc;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.statusDesc
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=255, message="Field value is too long")
    @Column("statusDesc")
    private String statusdesc;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.referredBy
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("referredBy")
    private String referredby;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.prefixName
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("prefixName")
    private String prefixname;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.firstname
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("firstname")
    private String firstname;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.lastname
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("lastname")
    private String lastname;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.accountName
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("accountName")
    private String accountname;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.title
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("title")
    private String title;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.department
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("department")
    private String department;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.isCallable
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Column("isCallable")
    private Boolean iscallable;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.officePhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("officePhone")
    private String officephone;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.homePhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("homePhone")
    private String homephone;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.mobile
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("mobile")
    private String mobile;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.otherPhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("otherPhone")
    private String otherphone;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.fax
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("fax")
    private String fax;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.primAddress
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=255, message="Field value is too long")
    @Column("primAddress")
    private String primaddress;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.primState
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("primState")
    private String primstate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.primCity
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("primCity")
    private String primcity;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.primPostalCode
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("primPostalCode")
    private String primpostalcode;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.primCountry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("primCountry")
    private String primcountry;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.email
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=255, message="Field value is too long")
    @Column("email")
    private String email;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.createdTime
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Column("createdTime")
    private Date createdtime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.createdUser
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("createdUser")
    private String createduser;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.sAccountId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Column("sAccountId")
    private Integer saccountid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.assignUser
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("assignUser")
    private String assignuser;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.status
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("status")
    private String status;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.source
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("source")
    private String source;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.website
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=255, message="Field value is too long")
    @Column("website")
    private String website;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.otherAddress
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=255, message="Field value is too long")
    @Column("otherAddress")
    private String otheraddress;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.otherState
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("otherState")
    private String otherstate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.otherCity
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("otherCity")
    private String othercity;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.otherPostalCode
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("otherPostalCode")
    private String otherpostalcode;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.otherCountry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("otherCountry")
    private String othercountry;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.industry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("industry")
    private String industry;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.lastUpdatedTime
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Column("lastUpdatedTime")
    private Date lastupdatedtime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.noEmployees
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Column("noEmployees")
    private Integer noemployees;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.avatarId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("avatarId")
    private String avatarid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_lead.description
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    @Length(max=16777215, message="Field value is too long")
    @Column("description")
    private String description;

    private static final long serialVersionUID = 1;

    public final boolean equals(Object obj) {
        if (obj == null) { return false;}
        if (obj == this) { return true;}
        if (!obj.getClass().isAssignableFrom(getClass())) { return false;}
        Lead item = (Lead)obj;
        return new EqualsBuilder().append(id, item.id).build();
    }

    public final int hashCode() {
        return new HashCodeBuilder(1507, 1939).append(id).build();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.id
     *
     * @return the value of m_crm_lead.id
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.id
     *
     * @param id the value for m_crm_lead.id
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.campaignId
     *
     * @return the value of m_crm_lead.campaignId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public Integer getCampaignid() {
        return campaignid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.campaignId
     *
     * @param campaignid the value for m_crm_lead.campaignId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setCampaignid(Integer campaignid) {
        this.campaignid = campaignid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.leadSourceDesc
     *
     * @return the value of m_crm_lead.leadSourceDesc
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getLeadsourcedesc() {
        return leadsourcedesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.leadSourceDesc
     *
     * @param leadsourcedesc the value for m_crm_lead.leadSourceDesc
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setLeadsourcedesc(String leadsourcedesc) {
        this.leadsourcedesc = leadsourcedesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.statusDesc
     *
     * @return the value of m_crm_lead.statusDesc
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getStatusdesc() {
        return statusdesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.statusDesc
     *
     * @param statusdesc the value for m_crm_lead.statusDesc
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setStatusdesc(String statusdesc) {
        this.statusdesc = statusdesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.referredBy
     *
     * @return the value of m_crm_lead.referredBy
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getReferredby() {
        return referredby;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.referredBy
     *
     * @param referredby the value for m_crm_lead.referredBy
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setReferredby(String referredby) {
        this.referredby = referredby;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.prefixName
     *
     * @return the value of m_crm_lead.prefixName
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getPrefixname() {
        return prefixname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.prefixName
     *
     * @param prefixname the value for m_crm_lead.prefixName
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setPrefixname(String prefixname) {
        this.prefixname = prefixname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.firstname
     *
     * @return the value of m_crm_lead.firstname
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getFirstname() {
        return firstname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.firstname
     *
     * @param firstname the value for m_crm_lead.firstname
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.lastname
     *
     * @return the value of m_crm_lead.lastname
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getLastname() {
        return lastname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.lastname
     *
     * @param lastname the value for m_crm_lead.lastname
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.accountName
     *
     * @return the value of m_crm_lead.accountName
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getAccountname() {
        return accountname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.accountName
     *
     * @param accountname the value for m_crm_lead.accountName
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setAccountname(String accountname) {
        this.accountname = accountname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.title
     *
     * @return the value of m_crm_lead.title
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.title
     *
     * @param title the value for m_crm_lead.title
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.department
     *
     * @return the value of m_crm_lead.department
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getDepartment() {
        return department;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.department
     *
     * @param department the value for m_crm_lead.department
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setDepartment(String department) {
        this.department = department;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.isCallable
     *
     * @return the value of m_crm_lead.isCallable
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public Boolean getIscallable() {
        return iscallable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.isCallable
     *
     * @param iscallable the value for m_crm_lead.isCallable
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setIscallable(Boolean iscallable) {
        this.iscallable = iscallable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.officePhone
     *
     * @return the value of m_crm_lead.officePhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getOfficephone() {
        return officephone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.officePhone
     *
     * @param officephone the value for m_crm_lead.officePhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setOfficephone(String officephone) {
        this.officephone = officephone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.homePhone
     *
     * @return the value of m_crm_lead.homePhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getHomephone() {
        return homephone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.homePhone
     *
     * @param homephone the value for m_crm_lead.homePhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setHomephone(String homephone) {
        this.homephone = homephone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.mobile
     *
     * @return the value of m_crm_lead.mobile
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.mobile
     *
     * @param mobile the value for m_crm_lead.mobile
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.otherPhone
     *
     * @return the value of m_crm_lead.otherPhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getOtherphone() {
        return otherphone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.otherPhone
     *
     * @param otherphone the value for m_crm_lead.otherPhone
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setOtherphone(String otherphone) {
        this.otherphone = otherphone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.fax
     *
     * @return the value of m_crm_lead.fax
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getFax() {
        return fax;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.fax
     *
     * @param fax the value for m_crm_lead.fax
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setFax(String fax) {
        this.fax = fax;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.primAddress
     *
     * @return the value of m_crm_lead.primAddress
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getPrimaddress() {
        return primaddress;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.primAddress
     *
     * @param primaddress the value for m_crm_lead.primAddress
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setPrimaddress(String primaddress) {
        this.primaddress = primaddress;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.primState
     *
     * @return the value of m_crm_lead.primState
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getPrimstate() {
        return primstate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.primState
     *
     * @param primstate the value for m_crm_lead.primState
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setPrimstate(String primstate) {
        this.primstate = primstate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.primCity
     *
     * @return the value of m_crm_lead.primCity
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getPrimcity() {
        return primcity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.primCity
     *
     * @param primcity the value for m_crm_lead.primCity
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setPrimcity(String primcity) {
        this.primcity = primcity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.primPostalCode
     *
     * @return the value of m_crm_lead.primPostalCode
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getPrimpostalcode() {
        return primpostalcode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.primPostalCode
     *
     * @param primpostalcode the value for m_crm_lead.primPostalCode
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setPrimpostalcode(String primpostalcode) {
        this.primpostalcode = primpostalcode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.primCountry
     *
     * @return the value of m_crm_lead.primCountry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getPrimcountry() {
        return primcountry;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.primCountry
     *
     * @param primcountry the value for m_crm_lead.primCountry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setPrimcountry(String primcountry) {
        this.primcountry = primcountry;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.email
     *
     * @return the value of m_crm_lead.email
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getEmail() {
        return email;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.email
     *
     * @param email the value for m_crm_lead.email
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.createdTime
     *
     * @return the value of m_crm_lead.createdTime
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public Date getCreatedtime() {
        return createdtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.createdTime
     *
     * @param createdtime the value for m_crm_lead.createdTime
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setCreatedtime(Date createdtime) {
        this.createdtime = createdtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.createdUser
     *
     * @return the value of m_crm_lead.createdUser
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getCreateduser() {
        return createduser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.createdUser
     *
     * @param createduser the value for m_crm_lead.createdUser
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setCreateduser(String createduser) {
        this.createduser = createduser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.sAccountId
     *
     * @return the value of m_crm_lead.sAccountId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public Integer getSaccountid() {
        return saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.sAccountId
     *
     * @param saccountid the value for m_crm_lead.sAccountId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setSaccountid(Integer saccountid) {
        this.saccountid = saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.assignUser
     *
     * @return the value of m_crm_lead.assignUser
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getAssignuser() {
        return assignuser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.assignUser
     *
     * @param assignuser the value for m_crm_lead.assignUser
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setAssignuser(String assignuser) {
        this.assignuser = assignuser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.status
     *
     * @return the value of m_crm_lead.status
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.status
     *
     * @param status the value for m_crm_lead.status
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.source
     *
     * @return the value of m_crm_lead.source
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getSource() {
        return source;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.source
     *
     * @param source the value for m_crm_lead.source
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.website
     *
     * @return the value of m_crm_lead.website
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getWebsite() {
        return website;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.website
     *
     * @param website the value for m_crm_lead.website
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setWebsite(String website) {
        this.website = website;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.otherAddress
     *
     * @return the value of m_crm_lead.otherAddress
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getOtheraddress() {
        return otheraddress;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.otherAddress
     *
     * @param otheraddress the value for m_crm_lead.otherAddress
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setOtheraddress(String otheraddress) {
        this.otheraddress = otheraddress;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.otherState
     *
     * @return the value of m_crm_lead.otherState
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getOtherstate() {
        return otherstate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.otherState
     *
     * @param otherstate the value for m_crm_lead.otherState
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setOtherstate(String otherstate) {
        this.otherstate = otherstate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.otherCity
     *
     * @return the value of m_crm_lead.otherCity
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getOthercity() {
        return othercity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.otherCity
     *
     * @param othercity the value for m_crm_lead.otherCity
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setOthercity(String othercity) {
        this.othercity = othercity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.otherPostalCode
     *
     * @return the value of m_crm_lead.otherPostalCode
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getOtherpostalcode() {
        return otherpostalcode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.otherPostalCode
     *
     * @param otherpostalcode the value for m_crm_lead.otherPostalCode
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setOtherpostalcode(String otherpostalcode) {
        this.otherpostalcode = otherpostalcode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.otherCountry
     *
     * @return the value of m_crm_lead.otherCountry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getOthercountry() {
        return othercountry;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.otherCountry
     *
     * @param othercountry the value for m_crm_lead.otherCountry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setOthercountry(String othercountry) {
        this.othercountry = othercountry;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.industry
     *
     * @return the value of m_crm_lead.industry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getIndustry() {
        return industry;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.industry
     *
     * @param industry the value for m_crm_lead.industry
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setIndustry(String industry) {
        this.industry = industry;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.lastUpdatedTime
     *
     * @return the value of m_crm_lead.lastUpdatedTime
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public Date getLastupdatedtime() {
        return lastupdatedtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.lastUpdatedTime
     *
     * @param lastupdatedtime the value for m_crm_lead.lastUpdatedTime
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setLastupdatedtime(Date lastupdatedtime) {
        this.lastupdatedtime = lastupdatedtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.noEmployees
     *
     * @return the value of m_crm_lead.noEmployees
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public Integer getNoemployees() {
        return noemployees;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.noEmployees
     *
     * @param noemployees the value for m_crm_lead.noEmployees
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setNoemployees(Integer noemployees) {
        this.noemployees = noemployees;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.avatarId
     *
     * @return the value of m_crm_lead.avatarId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getAvatarid() {
        return avatarid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.avatarId
     *
     * @param avatarid the value for m_crm_lead.avatarId
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setAvatarid(String avatarid) {
        this.avatarid = avatarid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_lead.description
     *
     * @return the value of m_crm_lead.description
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public String getDescription() {
        return description;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_lead.description
     *
     * @param description the value for m_crm_lead.description
     *
     * @mbg.generated Sun Dec 25 21:29:47 ICT 2016
     */
    public void setDescription(String description) {
        this.description = description;
    }

    public enum Field {
        id,
        campaignid,
        leadsourcedesc,
        statusdesc,
        referredby,
        prefixname,
        firstname,
        lastname,
        accountname,
        title,
        department,
        iscallable,
        officephone,
        homephone,
        mobile,
        otherphone,
        fax,
        primaddress,
        primstate,
        primcity,
        primpostalcode,
        primcountry,
        email,
        createdtime,
        createduser,
        saccountid,
        assignuser,
        status,
        source,
        website,
        otheraddress,
        otherstate,
        othercity,
        otherpostalcode,
        othercountry,
        industry,
        lastupdatedtime,
        noemployees,
        avatarid,
        description;

        public boolean equalTo(Object value) {
            return name().equals(value);
        }
    }
}